package com.xiaoxx.model.dto.sys;

import com.xiaoxx.common.base.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author :HX
 * @date : 2023/7/19
 */
@Data
@ApiModel(value = "UserRegisterDto", description = "用户注册Dto")
public class UserRegisterDto extends BaseDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号/用户名")
    @NotBlank(message = "账号/用户名不能为空")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "确认密码")
    @NotBlank(message = "确认密码不能为空")
    private String verifyPassword;

    @ApiModelProperty(value = "0-用户端注册 1-管理端注册")
    private Integer registerType=0;
}
